<%@ page import="com.sz.controller.frame.TikuController" %>
<%@page language="java" contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/admin/header.jsp"%>
<%
	request.setAttribute("modify", TikuController.MODIFY_URL );
	request.setAttribute("list", TikuController.LIST_URL );
	request.setAttribute("remove", TikuController.REMOVE_URL );
%>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>题库管理
		<span class="c-gray en">&gt;</span>列表 <a
			class="btn btn-success radius r"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace(location.href);" title="刷新"> <i
			class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="page-container">

		<form action="${ctx }${list}" id="searchForm" method="post">
			<input id="curentPage" name="curentPage" type="hidden" value="1">
			<div class="text-c">
				<input id="key" name="key" value="${key }" type="text"
					class="input-text" style="width: 250px" placeholder="输入关键字">
					<input id="q" name="q" value="${q }" type="text"
					class="input-text" style="width: 250px" placeholder="输入问题">
				<button type="submit" class="btn btn-success radius" id="" name="">
					<i class="Hui-iconfont">&#xe665;</i> 搜索
				</button>
			</div>
		</form>
		<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l">
					<a  onclick="add('添加用户', '${ctx }${modify}')"  href="javascript:;" class="btn btn-primary radius">
						<i class="Hui-iconfont">&#xe600;</i>添加
					</a>
			</span>
		</div>
		<div class="mt-20 dataTables_wrapper">
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="5%"><input type="checkbox"
							onclick="selectAll('listTable', 'ids', this);"></th>
						<th width="70%">问题</th>
						<th width="15%">关键词</th>
						<th width="10%">操作</th>
					</tr>
				</thead>
				<tbody id="listTable">
					<c:forEach items="${tikulist }" var="tiku" varStatus="s">
						<tr class="text-c">
							<td><input type="checkbox" class="ids" value="${tiku.id}"></td>
							<td>${tiku.quesetion }</td>
							<td>${tiku.keysWords }</td>
							<td>
                                <a href="javascript:;" class="btn btn-danger-outline radius size-MINI"
                                   onclick="manageConfirm('${ctx }${remove }?ids=${tiku.id}','确认要删除此题吗？');">删除</a>                                								<a href="${ctx }${modify }?id=${tiku.id}" class="btn btn-success-outline radius size-MINI" >修改</a>
                            </td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			${page.showPages }
		</div>
	</div>
	<%@include file="/admin/footer.jsp"%>
</body>
</html>